package graphs

import (
	"power/core/dao/graphdao"
	"power/core/dao/table"
	"power/core/localwrap"
)

type GraphElementDatas struct{}

func (s GraphElementDatas) Query(param graphdao.GraphElementDatasQueryParam) ([]table.GraphElementData, int64) {
	ds := localwrap.GetRedisedMysql()
	defer ds.Close()
	return graphdao.GraphElementDatas{RedisedMysql: ds}.Query(param)
}
func (s GraphElementDatas) Get(id int) table.GraphElementData {
	ds := localwrap.GetRedisedMysql()
	defer ds.Close()
	return graphdao.GraphElementDatas{RedisedMysql: ds}.Get(id)
}
func (s GraphElementDatas) Add(param graphdao.GraphElementDatasAddParam) table.GraphElementData {
	ds := localwrap.GetRedisedMysql()
	defer ds.Close()
	return graphdao.GraphElementDatas{RedisedMysql: ds}.Add(param)
}
func (s GraphElementDatas) Delete(id int) {
	ds := localwrap.GetRedisedMysql()
	defer ds.Close()
	graphdao.GraphElementDatas{RedisedMysql: ds}.Delete(id)
}
func (s GraphElementDatas) Update(param graphdao.GraphElementDatasUpdateParam) {
	ds := localwrap.GetRedisedMysql()
	defer ds.Close()
	graphdao.GraphElementDatas{RedisedMysql: ds}.Update(param)
}


